{% extends "process/base.html" %}
{% load nm %}
{% load js %}

{% block head_resources %}
{{block.super}}
{% jsinclude "nm" %}
{% endblock %}

{% block content %}

<h1>Apply for a new status for {{person}}</h1>

<p>Current status of {{person}}: <b>{{person.status|desc_status}}</b>.</p>

{% if current %}
Currently open processes:
<ul>
{% for c in current %}
<li><a href="{{c.get_absolute_url}}">{{c.applying_for|desc_status}}</a></li>
{% endfor %}
</ul>
{% endif %}

<form action="" method="post">{% csrf_token %}
  {% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
  {% for field in form.visible_fields %}
  {{ field.label_tag }}<br>
  {{ field }}<br>
  {{ field.errors }}
  {% endfor %}        
  {{ form.non_field_errors }}
  <input type="submit" value="Submit">
</form>

{% endblock %}
